package es.ats.codington.festival.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;


import es.ats.codington.festival.domain.Place.Zone;
import es.ats.codington.festival.domain.Zoo;


public class ZooMapper implements RowMapper<Zoo>{

	@Override
	public Zoo mapRow(ResultSet resultSet, int numRow) throws SQLException {
		Zoo zoo = new Zoo();
		

		zoo.setIdPlace(resultSet.getInt("idPlace"));
		zoo.setPlaceName(resultSet.getString("placeName"));
		zoo.setZone(Zone.SOUTH);
		zoo.setZooName(resultSet.getString("ZooName"));
			
			
		return zoo;
	}

}
